﻿	      <?php include("conn.php");
             mysql_query('SET NAMES UTF8'); 

	if ($_REQUEST[cityid]!='') {
		$rert30=mysql_query("select * from resou where cityid='".$_REQUEST[cityid]."'  order by id desc");
	}else{
		$rert30=mysql_query("select * from resou  order by id desc");
	}
    
    $prize = array();
    while($rowf = mysql_fetch_array($rert30)){
	    $prize[] = $rowf[keywords];
	}

$arr = array('code' => 200, 'msg' =>'查询热搜信息成功', 'data' => $prize);
echo json_encode($arr);


?>